opAAKey

Used in KeyedItem for the generated structs. This allows the struct to be used as a key in an associative array.

The template loops over the members to define toHash, opEquals, and opCmp for the struct.

mixin template opAAKey (
T
) if (
is(T == struct)
) {}

Members

Functions

opCmp
int opCmp(inout(T) pk)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(inout(T) pk)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta